﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.Application
{
    public class DictionaryInput
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 软删除
        /// </summary>
        public bool IsDeleted { get; set; }
    }


    public class DictionaryAddInput: DictionaryInput
    {

    }

    public class DictionaryEditInput: DictionaryInput
    {
        public int Id { get; set; }
    }

    public class DictionaryPageInput
    {
        /// <summary>
        /// 页码
        /// </summary>
        [Required(ErrorMessage = "页码不能为空")]
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        [Required(ErrorMessage = "页容量不能为空"), Range(5, 30, ErrorMessage = ("页码只能在 5 到 30 之间"))]
        public int PageSize { get; set; } = 20;

        /// <summary>
        /// 关键字
        /// </summary>
        public string Keyword { get; set; }


 


        /// <summary>
        /// 软删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;


    }


    public class DictionaryRangeInput
    {
        public int[] Ids { get; set; }

    }

    /// <summary>
    /// 批量删除
    /// </summary>
    public class DictionaryDeleteRangeInput : DictionaryRangeInput
    {

    }

}
